initMap = function() {
	var lat = 24.120355892;
	var lon = 44.527964451;
	var zoom = 1;
	var bounds = new OpenLayers.Bounds(34.495,16.096,55.667,32.159);
	var options = {
			controls : [ ],
			projection : "EPSG:4326",
			units : 'dd',
			scales : [ 50000000, 14000000, 11000000, 9000000, 7500000, 5000000, 2500000, 1000000,
			           500000, 100000, 50000 ],
			maxExtent : bounds
	};
	mapObj = new OpenLayers.Map("map", options);
	createAndAddLayers	( mapObj );
	initAllMapTools		( mapObj ); 	//@ js/helper/mapTools.js
	//mapObj.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
	mapObj.zoomToMaxExtent();
};
//alert("local:"+local);
createAndAddLayers = function( mapObj ){
	mapObj.addLayer( createLayer('Region', 		'nis:World_Admin,nis:Sea,nis:Regions','nis_world,nis_sea,nis_Regions', true,  true  ) );
	mapObj.addLayer( createLayer(citybranchLabel, 'nis:city_pg', 'nis_city', false, false ) );
	mapObj.addLayer( createLayer(departmentLayerLabel, 		'nis:Departments','nis_dept', false, false ) );
};

createLayer = function(layerName, layer, style, isBaseLayer, isVisible) {
	var wmsLayer;
	// TODO : find out all time base layer display and remove the condition
	if (isBaseLayer) {
		wmsLayer = new OpenLayers.Layer.WMS( layerName, geoServer, {
			layers : layer,
			styles : style,
			srs : 'EPSG:4326',
			format : 'image/png'
		}, {
			isBaseLayer : true,
			singleTile : true,
				transitionEffect:'resize',
			displayInLayerSwitcher : false,
			'attribution' : '� 2009 Mapview'
		}, {
			buffer : 0,
			projection : "EPSG:4326"
		});
	} else {
		wmsLayer = new OpenLayers.Layer.WMS(layerName, geoServer, {
			layers : layer,
			styles : style,
			transparent : "true",
			srs : 'EPSG:4326',
			format : 'image/png'
		}, {
			isBaseLayer : isBaseLayer,
			singleTile : true,
				transitionEffect:'resize'
		});
	}
	wmsLayer.setVisibility(isVisible);
	return wmsLayer;
};


mapPostActivity = function( mapObj ){
	//postActivity
};